export const setting = {
  options: {
    api: {
      label: "API设置",
      key: "api",
      template: {
        preTemplate: {
          label: "预设",
          prop: "preTemplate",
          type: "select",
          options: [],
          value: null,
        },
        apiType: {
          label: "API",
          prop: "apiType",
          type: "select",
          options: [
            {
              label: "OpenAI",
              value: "OpenAI",
            },
          ],
          value: null,
        },
        apiUrl: {
          label: "API地址",
          prop: "apiUrl",
          type: "input",
          value: null,
        },
        Authorization: {
          label: "秘钥",
          prop: "Authorization",
          type: "input",
          value: null,
        },
      },
      backups: {},
    },
    generate: {
      label: "生成设置",
      key: "generate",
      template: {
        setting: {
          label: "生成配置",
          prop: "setting",
          type: "json",
          value: [],
          max: 1,
        },
      },
      backups: {},
    },
    base: {
      label: "基础设置",
      key: "base",
      template: {
        username: {
          label: "用户名",
          prop: "username",
          type: "input",
          value: null,
        },
        avatar: {
          label: "用户头像",
          prop: "avatar",
          type: "image",
          value: [],
          max: 1,
        },
        systemHide: {
          label: "显示系统信息",
          prop: "systemHide",
          type: "switch",
          value: true,
        },
      },
      backups: {},
    },
  },
};
